<!DOCTYPE html>
<html>
	<head>
    	<meta charset="utf-8" />
        <title>Test Admin</title> 
        <base href="<{$B_Url}>" />
		<link type="text/css" rel="stylesheet" href="<{$APP_CSS_Url}>page.css" /> 
		<!-- <link type="text/css" rel="stylesheet" href="<{$APP_CSS_Url}>jquery_dialog.css" /> --> 
		<script type="text/javascript" src="<{$JS_Url}>jquery.min.js"></script>   
		<script language="javascript" src="<{$APP_JS_Url}>colResizable-1.3.min.js"></script>
    </head>
    <body>
    	<div class="toolbar">
        	<table>
        	<form action="admin.php/main/dolist">
            	<tr>
                	<td><label>账号</label></td>
                    <td><input id="s_name" name="s_name" value="<{$parm.s_name}>" /></td>
                	<td><label>地址</label></td>
                    <td><input id="s_addr" name="s_addr" value="<{$parm.s_addr}>" /></td>
                    <td><select ><option value="1">所有分类</option>
                    <option value="2">中国</option>
                    <option value="3">美国</option></select></td>
                    <td><input type="submit" class="btn btn120 btn_set" value="立即查询" /></td>
                    <td><input type="submit" class="btn btn120 btn_export" value="导出数据" /></td>
                    <td><input type="button" id="op" class="btn btn120 btn_edit" value="插入数据" /></td>
                </tr>
            </form>
            </table>
        </div>
    	<div id="dtablebox">
		    <table class="dtable" cellpadding="0" cellspacing="0" border="0" >
		        <tr>
		        	<th width="40"><input type="checkbox" /></th> 
		            <th>文章标题</th>
		            <th width="100">分类</th>
		            <th width="120">类型</th>
		            <th width="100">精品</th>
		            <th width="80">特价</th>
		            <th width="180">新品</th>
		        	<th width="100">热销</th>
		        </tr> 
		<{foreach from=$data item=line key=linekey}>
		        <tr>
		        	<td><input type="checkbox" /></td> 
		        	<td class="tl"><{$line.title}></td>
		            <td>Iphone</td>
		            <td>全新</td>
		            <td>YES</td>
		            <td>1999.00</td>
		            <td><{$line.addtime}></td>
		        	<td>
		            	<a href="#" class="lbtn lbtn_del"></a>
		                <a href="#" class="lbtn lbtn_add"></a>
		                <a href="#" class="lbtn lbtn_sub"></a>
		            </td>
		        </tr>
		<{/foreach}> 					
		    </table> 
		</div>
		<div class="pager">
                <div class="pagination">
<{if $pager}>
                  <ul>
                    	<li><a  href="<{$pageUrl}><{$pager.first_page}><{$queryStr}>">首页</a></li>
                    	<li><a href="<{$pageUrl}><{$pager.prev_page}><{$queryStr}>">上一页</a></li> 
<{foreach from=$pager.all_pages item=thepage}>
	<{if $thepage != $pager.current_page}>
						<li><a href="<{$pageUrl}><{$thepage}><{$queryStr}>"><{$thepage}></a></li>
	<{else}> 
						<li class="active"><span><{$thepage}></span></li>
	<{/if}>
<{/foreach}> 
                    	<li><a href="<{$pageUrl}><{$pager.next_page}><{$queryStr}>">下一页</a></li>
                    	<li><a href="<{$pageUrl}><{$pager.last_page}><{$queryStr}>">末页</a></li>
                  </ul>
                <span>
                	共<{$pager.total_count}>条数据,
                	共<{$pager.total_page}>页,
                	每页<{$pager.page_size}>条，
                	当前第<{$pager.current_page}>页
                </span>
<{/if}>
                </div>
            </div>

    </body>
</html>
<script language="javascript">
$(function(){
  $("table.dtable").colResizable();
  $(".dtable tr:odd").addClass('tr0');
  $(".dtable tr").hover(function(){ $(this).addClass('hv'); },function(){ $(this).removeClass('hv'); });
  
  $('#op').click(function(){
  	//JqueryDialog.Open1('添加新的数据', 'admin.php/main/adddata', 800, 400);
  	window.top.openurl();  
  });
  
  console.log(document.cookie);
  setCookie('nicky','Hubin');
});

function setCookie(name,value) 
{ 
    var Days = 30; 
    var exp = new Date(); 
    exp.setTime(exp.getTime() + Days*24*60*60*1000); 
    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString(); 
} 
</script>